
class DesignerSerializer < ActiveModel::Serializer
  attributes :id, :name, :position, :description

  attribute :photo do
    if object.avatar
       object.avatar.image_url
    else
      "new-home/designer-1.png"
    end
  end

end
